﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SDT.Model.Tag>" %>

<%@ Import Namespace="SDT.Model" %>
<%@ Import Namespace="SDT.Lib.Helpers" %>
<%@ Import Namespace="SDT.Admin.ViewModels" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Xoá tag
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%if(ViewData["MessageInfo"]==null){ %>
	<form method="post" style="text-align:center">		
	<%if (Model.ArticleTagMaps.Count() > 0)
   { %>
    <p>Tag "<%=Model.Keyword%>" đang được sử dụng. Bạn không thể xóa tag này!</p>
    <input type="button" value="Quay lại" onclick="javascript:history.back(1)" />
	<%}
   else
   { %>
		<p>Tag "<%= Model.Keyword%>" sẽ bị xóa vĩnh viễn. Bạn có chắc chắn muốn xóa không?</p>
		<input type="submit" value="Đồng ý" />
		<input type="button" value="Không" onclick="javascript:history.back(1)" />
		<%} %>
	</form>
<% } %>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Toolbar" runat="server">
    <td>
    <%= Html.Toolbar("Quay về", "/Tag", "back") %>
    </td>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="Header" runat="server">
    Xóa tag
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="Message" runat="server">
    <%=ViewData["MessageInfo"]!=null? "<p class='perror'>"+Html.Encode(ViewData["MessageInfo"])+"</p>":string.Empty%>
</asp:Content>
